import { createSlice } from "@reduxjs/toolkit"

const golableStore = createSlice({
  name: "gloable",
  initialState: {
    word:'世界'
  },
  reducers: {
    getConslog(state) {
      console.log(state.word);
    }
  }
}) 

const { getConslog } = golableStore.actions
export { 
  getConslog
}

const reducer = golableStore.reducer
export default reducer